﻿Namespace = Class.create({
    initialize: function (fullName) {
        this.register(fullName);
    },
    register: function (fullName) {
        var nsArray = fullName.split('.');
        var sEval = "";
        var sNS = "";
        for (var i = 0; i < nsArray.length; i++) {
            if (i != 0)
                sNS += "[\"" + nsArray[i] + "\"]";
            else
                sNS += nsArray[i];
            sEval += "if (typeof(" + sNS + ") == 'undefined') " + sNS + " = {};"
        }
        if (sEval != "") eval(sEval);
    }
});

new Namespace("Rein");
new Namespace("Rein.Control");
new Namespace("Rein.Page");
new Namespace("Rein.Holder");






